package com.white.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.white.bean.FollowView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FollowViewMapper extends BaseMapper<FollowView> {
    String TABLE_NAME = " followView ";
    int LIMIT = 10;
    String CREATE_TIME = "createTime";
    @Select("select * from" + TABLE_NAME + "where authorId = #{userId} order by " + CREATE_TIME + " desc limit " + LIMIT)
    List<FollowView> getFollowViewById(Long userId);
}
